<template>
  <span>
    {{tableComment}} &nbsp;<i 
    class="el-icon-view" 
    title="查看表单和布局"
    style="cursor: pointer;"
    @click="viewTable"></i>
  </span>
</template>

<script>
export default {
  props: ['tableId', 'tableComment'],
  data() {
    return {

    }
  },
  created() {
  },
  methods: {
    viewTable() {
      if (this.tableId) {
        this.$router.push({
          name: 'designFormList', 
          params: {
            tableId: this.tableId
          }
        })
      } else {
        this.$router.push({
          name: 'designFormList'
        })
      }
    },
  }
}
</script>
